// source --> https://www.cinofollie.club/wp-content/plugins/staffer/public/js/staffer-scripts.js?ver=2.1.0 (function( $ ) { 'use strict'; var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } }; $(document).ready( function(e) { $('a.cw-launch-staffer-modal').on('click', function(e) { var bio,img,name,title, id, slug, department,website,phone,email,fb, linkedin,twitter,gplus,youtube, instagram,github, iconArr, iconOutput = ''; bio = $(this).attr('data-bio'); img = $(this).attr('data-large-image'); img = img.replace('aligncenter', 'alignleft'); img = img.replace('alignleft', 'alignleft cw-staffer-max-image'); name = $(this).attr('data-name'); title = $(this).attr('data-title'); department = $(this).attr('data-departments'); phone = $(this).attr('data-phone'); email = $(this).attr('data-email'); website = $(this).attr('data-website'); id = $(this).attr('data-staff-id'); slug = $(this).attr('data-staff-slug'); fb = $(this).attr('data-facebook'); twitter = $(this).attr('data-twitter'); linkedin = $(this).attr('data-linkedin'); gplus = $(this).attr('data-google-plus'); youtube = $(this).attr('data-youtube'); instagram = $(this).attr('data-instagram'); github = $(this).attr('data-github'); iconArr = { 'facebook' : fb, 'twitter' : twitter, 'linkedin' : linkedin, 'googleplus' : gplus, 'youtube' : youtube, 'instagram' : instagram, 'github' : github } $.each( iconArr, function( key, value ) { if( value !== '' ) { iconOutput += ''; } }); $('.cw-staffer-modal .staff-name').text(name); $('.cw-staffer-modal .cw-modal-header .staff-title').text(title); $('.cw-staffer-modal .cw-modal-header .staff-department').text(department); $('.cw-staffer-modal .cw-modal-header .social-icons').html(iconOutput); if( website ) { $('.cw-staffer-modal .cw-modal-header .staff-website').html('' + website + ''); } else { $('.cw-staffer-modal .cw-modal-header .staff-website').html(''); } $('.cw-staffer-modal .cw-modal-header .staff-phone').text(phone); $('.cw-staffer-modal .cw-modal-header .staff-email').text(email); $('.cw-staffer-modal .cw-modal-body').html(img + bio); $('.cw-staffer-modal').show(); $('body').addClass('cw-staffer-overlay'); $('html').addClass('cw-staffer-overlay'); var state = { name: slug }; history.pushState(state, '', '?uid=' + slug ); return false; }); $('.cw-staffer-modal .cw-modal-close').on('click', function(e) { $('.cw-staffer-modal').hide(); $('body').removeClass('cw-staffer-overlay'); $('html').removeClass('cw-staffer-overlay'); var state = { name: 'none' }; history.replaceState(state, '', '?' ); return false; }); if( $('body').hasClass('staffer-main-page') ) { var staff_name = getUrlParameter('uid'); if( staff_name ) { $('a.cw-launch-staffer-modal[data-staff-slug="' + staff_name + '"]').trigger('click'); } $('.staffer-staff-email').each( function(i,obj) { var email = $(this).parent().find('a[data-email]').attr('data-email'); $(this).find('em').text( email ); }); } }); })( jQuery ); // source --> https://www.cinofollie.club/wp-content/plugins/duracelltomi-google-tag-manager/js/gtm4wp-contact-form-7-tracker.js?ver=1.10.1 jQuery( function() { jQuery( ".wpcf7" ) .on( 'wpcf7mailsent', function( e ) { var gtm4wp_cf7formid = '(not set)'; if ( e && e.detail && e.detail.contactFormId ) { gtm4wp_cf7formid = e.detail.contactFormId; } else if ( e && e.originalEvent && e.originalEvent.detail && e.originalEvent.detail.contactFormId ) { gtm4wp_cf7formid = e.originalEvent.detail.contactFormId; } var gtm4wp_cf7forminputs = []; if ( e && e.detail && e.detail.inputs ) { gtm4wp_cf7forminputs = e.detail.inputs; } else if ( e && e.originalEvent && e.originalEvent.detail && e.originalEvent.detail.inputs ) { gtm4wp_cf7forminputs = e.originalEvent.detail.inputs; } window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.contactForm7Submitted', 'gtm4wp.cf7formid': gtm4wp_cf7formid, 'gtm4wp.cf7inputs': gtm4wp_cf7forminputs }); }); }); // source --> https://www.cinofollie.club/wp-content/plugins/duracelltomi-google-tag-manager/js/gtm4wp-form-move-tracker.js?ver=1.10.1 jQuery( function() { jQuery( ":input" ) .on( "focus", function() { var input = jQuery(this); var inputID = input.attr("id") || "(no input ID)"; var inputName = input.attr("name") || "(no input name)"; var inputClass = input.attr("class") || "(no input class)"; var form = jQuery(this.form); var formID = form.attr("id") || "(no form ID)"; var formName = form.attr("name") || "(no form name)"; var formClass = form.attr("class") || "(no form class)"; window[ gtm4wp_datalayer_name ].push({ 'event' : 'gtm4wp.formElementEnter', 'inputID' : inputID, 'inputName' : inputName, 'inputClass': inputClass, 'formID' : formID, 'formName' : formName, 'formClass': formClass }); }) .on( "blur", function() { var input = jQuery(this); var inputID = input.attr("id") || "(no input ID)"; var inputName = input.attr("name") || "(no input name)"; var inputClass = input.attr("class") || "(no input class)"; var form = jQuery(this.form); var formID = form.attr("id") || "(no form ID)"; var formName = form.attr("name") || "(no form name)"; var formClass = form.attr("class") || "(no form class)"; window[ gtm4wp_datalayer_name ].push({ 'event' : 'gtm4wp.formElementLeave', 'inputID' : inputID, 'inputName' : inputName, 'inputClass': inputClass, 'formID' : formID, 'formName' : formName, 'formClass': formClass }); }); }); // source --> https://www.cinofollie.club/wp-content/plugins/duracelltomi-google-tag-manager/js/gtm4wp-social-tracker.js?ver=1.10.1 jQuery( function() { if ( typeof FB != "undefined" ) { FB.Event.subscribe( 'edge.create', function( href, widget ) { window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.socialAction', 'network': 'facebook', 'socialAction': 'like', 'opt_target': href, 'opt_pagePath': window.location.href }); }); FB.Event.subscribe( 'edge.remove', function( href, widget ) { window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.socialAction', 'network': 'facebook', 'socialAction': 'unlike', 'opt_target': href, 'opt_pagePath': window.location.href }); }); FB.Event.subscribe( 'comment.create', function( href, commentID ) { window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.socialAction', 'network': 'facebook', 'socialAction': 'comment', 'opt_target': href, 'opt_pagePath': window.location.href }); }); FB.Event.subscribe( 'comment.remove', function( href, commentID ) { window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.socialAction', 'network': 'facebook', 'socialAction': 'uncomment', 'opt_target': href, 'opt_pagePath': window.location.href }); }); FB.Event.subscribe( 'message.send', function( response ) { window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.socialAction', 'network': 'facebook', 'socialAction': 'send', 'opt_target': response, 'opt_pagePath': window.location.href }); }); } // end of Facebook social events if ( typeof window.twttr == "undefined" ) { window.twttr = (function ( d, s, id ) { var t, js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js=d.createElement(s); js.id=id; js.src="https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); return window.twttr || (t = { _e: [], ready: function(f) { t._e.push(f); } }); } (document, "script", "twitter-wjs")); } // end of loading Twitter JS if ( typeof window.twttr != "undefined" ) { window.twttr.ready(function ( twttr ) { twttr.events.bind( 'tweet', function ( intent_event ) { if ( intent_event ) { var label = intent_event.data.tweet_id; if (typeof label != 'undefined' && label) { if(label == 'label'){ label = window.location.href; } }else{ label = window.location.href; } window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.socialAction', 'network': 'twitter', 'socialAction': 'tweet', 'opt_target': label, 'opt_pagePath': window.location.href }); } }); window.twttr.events.bind( 'follow', function ( intent_event ) { if ( intent_event ) { var label = intent_event.data.user_id + " (" + intent_event.data.screen_name + ")"; window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.socialAction', 'network': 'twitter', 'socialAction': 'follow', 'opt_target': label, 'opt_pagePath': window.location.href }); } }); }); } }); // source --> https://www.cinofollie.club/wp-content/themes/Minamaze_Pro/lib/scripts/plugins/sticky/jquery.sticky.js?ver=true // Sticky Plugin v1.0.0 for jQuery // ============= // Author: Anthony Garand // Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk) // Improvements by Leonardo C. Daronco (daronco) // Created: 2/14/2011 // Date: 2/12/2012 // Website: http://labs.anthonygarand.com/sticky // Description: Makes an element on the page stick on the screen as you scroll // It will only set the 'top' and 'position' of your element, you // might need to adjust the width in some cases. (function($) { var defaults = { topSpacing: 0, bottomSpacing: 0, className: 'is-sticky', wrapperClassName: 'sticky-wrapper', center: false, getWidthFrom: '' }, $window = $(window), $document = $(document), sticked = [], windowHeight = $window.height(), scroller = function() { var scrollTop = $window.scrollTop(), documentHeight = $document.height(), dwh = documentHeight - windowHeight, extra = (scrollTop > dwh) ? dwh - scrollTop : 0; for (var i = 0; i < sticked.length; i++) { var s = sticked[i], elementTop = s.stickyWrapper.offset().top, etse = elementTop - s.topSpacing - extra; if (scrollTop <= etse) { if (s.currentTop !== null) { s.stickyElement .css('position', '') .css('top', ''); s.stickyElement.parent().removeClass(s.className); s.currentTop = null; } } else { var newTop = documentHeight - s.stickyElement.outerHeight() - s.topSpacing - s.bottomSpacing - scrollTop - extra; if (newTop < 0) { newTop = newTop + s.topSpacing; } else { newTop = s.topSpacing; } if (s.currentTop != newTop) { s.stickyElement .css('position', 'fixed') .css('top', newTop); if (typeof s.getWidthFrom !== 'undefined') { s.stickyElement.css('width', $(s.getWidthFrom).width()); } s.stickyElement.parent().addClass(s.className); s.currentTop = newTop; } } } }, resizer = function() { windowHeight = $window.height(); }, methods = { init: function(options) { var o = $.extend(defaults, options); return this.each(function() { var stickyElement = $(this); var stickyId = stickyElement.attr('id'); var wrapper = $('
') .attr('id', stickyId + '-sticky-wrapper') .addClass(o.wrapperClassName); stickyElement.wrapAll(wrapper); if (o.center) { stickyElement.parent().css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"}); } if (stickyElement.css("float") == "right") { stickyElement.css({"float":"none"}).parent().css({"float":"right"}); } var stickyWrapper = stickyElement.parent(); stickyWrapper.css('height', stickyElement.outerHeight()); sticked.push({ topSpacing: o.topSpacing, bottomSpacing: o.bottomSpacing, stickyElement: stickyElement, currentTop: null, stickyWrapper: stickyWrapper, className: o.className, getWidthFrom: o.getWidthFrom }); }); }, update: scroller }; // should be more efficient than using $window.scroll(scroller) and $window.resize(resizer): if (window.addEventListener) { window.addEventListener('scroll', scroller, false); window.addEventListener('resize', resizer, false); } else if (window.attachEvent) { window.attachEvent('onscroll', scroller); window.attachEvent('onresize', resizer); } $.fn.sticky = function(method) { if (methods[method]) { return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); } else if (typeof method === 'object' || !method ) { return methods.init.apply( this, arguments ); } else { $.error('Method ' + method + ' does not exist on jQuery.sticky'); } }; $(function() { setTimeout(scroller, 0); }); })(jQuery); // source --> https://www.cinofollie.club/wp-content/themes/Minamaze_Pro/lib/scripts/plugins/videoBG/jquery.videoBG.js?ver=0.2 /** * @preserve Copyright 2011 Syd Lawrence ( www.sydlawrence.com ). * Version: 0.2 * * Licensed under MIT and GPLv2. * * Usage: $('body').videoBG(options); * */ (function( $ ){ $.fn.videoBG = function( selector, options ) { var options = {}; if (typeof selector == "object") { options = $.extend({}, $.fn.videoBG.defaults, selector); } else if (!selector) { options = $.fn.videoBG.defaults; } else { return $(selector).videoBG(options); } var container = $(this); // check if elements available otherwise it will cause issues if (!container.length) return; // container to be at least relative if (container.css('position') == 'static' || !container.css('position')) container.css('position','relative'); // we need a width if (options.width == 0) options.width = container.width(); // we need a height if (options.height == 0) options.height = container.height(); // get the wrapper var wrap = $.fn.videoBG.wrapper(); wrap.height(options.height) .width(options.width); // if is a text replacement if (options.textReplacement) { // force sizes options.scale = true; // set sizes and forcing text out container.width(options.width) .height(options.height) .css('text-indent','-9999px'); } else { // set the wrapper above the video wrap.css('z-index',options.zIndex+1); } // move the contents into the wrapper wrap.html(container.clone(true)); // get the video var video = $.fn.videoBG.video(options); // if we are forcing width / height if (options.scale) { // overlay wrapper wrap.height(options.height) .width(options.width); // video video.height(options.height) .width(options.width); } // add it all to the container container.html(wrap); container.append(video); return video.find("video")[0]; } // set to fullscreen $.fn.videoBG.setFullscreen = function($el) { var windowWidth = $(window).width(), windowHeight = $(window).height(); $el.css('min-height',0).css('min-width',0); $el.parent().width(windowWidth).height(windowHeight); // if by width if (windowWidth / windowHeight > $el.aspectRatio) { $el.width(windowWidth).height('auto'); // shift the element up var height = $el.height(); var shift = (height - windowHeight) / 2; if (shift < 0) shift = 0; $el.css("top",-shift); } else { $el.width('auto').height(windowHeight); // shift the element left var width = $el.width(); var shift = (width - windowWidth) / 2; if (shift < 0) shift = 0; $el.css("left",-shift); // this is a hack mainly due to the iphone if (shift === 0) { var t = setTimeout(function() { $.fn.videoBG.setFullscreen($el); },500); } } $('body > .videoBG_wrapper').width(windowWidth).height(windowHeight); } // get the formatted video element $.fn.videoBG.video = function(options) { $('html, body').scrollTop(-1); // video container var $div = $(''); $div.addClass('videoBG') .css('position',options.position) .css('z-index',options.zIndex) .css('top',0) .css('left',0) .css('height',options.height) .css('width',options.width) .css('opacity',options.opacity) .css('overflow','hidden'); // video element var $video = $(''); $video.css('position','absolute') .css('z-index',options.zIndex) .attr('poster',options.poster) .css('top',0) .css('left',0) .css('min-width','100%') .css('min-height','100%'); if (options.autoplay) { $video.attr('autoplay',options.autoplay); } // if fullscreen if (options.fullscreen) { $video.bind('canplay',function() { // set the aspect ratio $video.aspectRatio = $video.width() / $video.height(); $.fn.videoBG.setFullscreen($video); }) // listen out for screenresize var resizeTimeout; $(window).resize(function() { clearTimeout(resizeTimeout); resizeTimeout = setTimeout(function() { $.fn.videoBG.setFullscreen($video); },100); }); $.fn.videoBG.setFullscreen($video); } // video standard element var v = $video[0]; // if meant to loop if (options.loop) { loops_left = options.loop; // cant use the loop attribute as firefox doesnt support it $video.bind('ended', function(){ // if we have some loops to throw if (loops_left) // replay that bad boy v.play(); // if not forever if (loops_left !== true) // one less loop loops_left--; }); } // when can play, play $video.bind('canplay', function(){ if (options.autoplay) // replay that bad boy v.play(); }); // if supports video if ($.fn.videoBG.supportsVideo()) { // supports webm if ($.fn.videoBG.supportType('webm')){ // play webm $video.attr('src',options.webm); } // supports mp4 else if ($.fn.videoBG.supportType('mp4')) { // play mp4 $video.attr('src',options.mp4); // $video.html(''); } // throw ogv at it then else { // play ogv $video.attr('src',options.ogv); } } // image for those that dont support the video var $img = $(''); $img.attr('src',options.poster) .css('position','absolute') .css('z-index',options.zIndex) .css('top',0) .css('left',0) .css('min-width','100%') .css('min-height','100%'); // add the image to the video // if suuports video if ($.fn.videoBG.supportsVideo()) { // add the video to the wrapper $div.html($video); } // nope - whoa old skool else { // add the image instead $div.html($img); } // if text replacement if (options.textReplacement) { // force the heights and widths $div.css('min-height',1).css('min-width',1); $video.css('min-height',1).css('min-width',1); $img.css('min-height',1).css('min-width',1); $div.height(options.height).width(options.width); $video.height(options.height).width(options.width); $img.height(options.height).width(options.width); } if ($.fn.videoBG.supportsVideo()) { v.play(); } return $div; } // check if suuports video $.fn.videoBG.supportsVideo = function() { return (document.createElement('video').canPlayType); } // check which type is supported $.fn.videoBG.supportType = function(str) { // if not at all supported if (!$.fn.videoBG.supportsVideo()) return false; // create video var v = document.createElement('video'); // check which? switch (str) { case 'webm' : return (v.canPlayType('video/webm; codecs="vp8, vorbis"')); break; case 'mp4' : return (v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')); break; case 'ogv' : return (v.canPlayType('video/ogg; codecs="theora, vorbis"')); break; } // nope return false; } // get the overlay wrapper $.fn.videoBG.wrapper = function() { var $wrap = $(''); $wrap.addClass('videoBG_wrapper') .css('position','absolute') .css('top',0) .css('left',0); return $wrap; } // these are the defaults $.fn.videoBG.defaults = { mp4:'', ogv:'', webm:'', poster:'', autoplay:true, loop:true, scale:false, position:"absolute", opacity:1, textReplacement:false, zIndex:0, width:0, height:0, fullscreen:false, imgFallback:true } })( jQuery ); // source --> https://www.cinofollie.club/wp-content/themes/Minamaze_Pro/lib/scripts/retina.js?ver=0.0.2 // retina.js, a high-resolution image swapper (http://retinajs.com), v0.0.2 (function(){function t(e){this.path=e;var t=this.path.split("."),n=t.slice(0,t.length-1).join("."),r=t[t.length-1];this.at_2x_path=n+"@2x."+r}function n(e){this.el=e,this.path=new t(this.el.getAttribute("src"));var n=this;this.path.check_2x_variant(function(e){e&&n.swap()})}var e=typeof exports=="undefined"?window:exports;e.RetinaImagePath=t,t.confirmed_paths=[],t.prototype.is_external=function(){return!!this.path.match(/^https?\:/i)&&!this.path.match("//"+document.domain)},t.prototype.check_2x_variant=function(e){var n,r=this;if(this.is_external())return e(!1);if(this.at_2x_path in t.confirmed_paths)return e(!0);n=new XMLHttpRequest,n.open("HEAD",this.at_2x_path),n.onreadystatechange=function(){return n.readyState!=4?e(!1):n.status>=200&&n.status<=399?(t.confirmed_paths.push(r.at_2x_path),e(!0)):e(!1)},n.send()},e.RetinaImage=n,n.prototype.swap=function(e){function n(){t.el.complete?(t.el.setAttribute("width",t.el.offsetWidth),t.el.setAttribute("height",t.el.offsetHeight),t.el.setAttribute("src",e)):setTimeout(n,5)}typeof e=="undefined"&&(e=this.path.at_2x_path);var t=this;n()},e.devicePixelRatio>1&&(window.onload=function(){var e=document.getElementsByTagName("img"),t=[],r,i;for(r=0;r